package com.hightemperator.dao;


import com.hightemperator.po.Activity;
import com.hightemperator.po.ActivityAndUserMessage;
import com.hightemperator.po.ActivityExample;
import com.hightemperator.po.ActivityUserMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ActivityMapper {
    int countByExample(ActivityExample example);

    int deleteByExample(ActivityExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    List<Activity> selectByExample(ActivityExample example);

    Activity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByExample(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    List<ActivityAndUserMessage> getActivityMessageForId(@Param("id") Integer id,
                                                         @Param("begin") Integer begin, @Param("end") Integer end);

    List<ActivityAndUserMessage> getActivityMessageList(Map<String, Object> param);

    Activity getPreActivity(@Param("id")Integer id);

}